﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;
using System.Collections;

namespace DelonixRegiaHMSys.Core.Services
{
    public class rrService
    {
        private readonly IRoomReservationQuery _roomReservationQuery;
        public rrService(IRoomReservationQuery roomReservationQuery)
        {
            _roomReservationQuery = roomReservationQuery;
        }
        public IEnumerable<RoomReservation> GetAllRoomReservation()
        {
            return _roomReservationQuery.GetAllRoomReservation();
        }
        public void AddRoomReservation(string reservationID, string guestID, string userID, int numOfAdults, int numOfChildren, DateTime arrivalDateTime, string roomType, string bedType, string smokingOrNot, string addRemarks, string reservationStatus)
        {
            _roomReservationQuery.AddRoomReservation(reservationID, guestID, userID, numOfAdults, numOfChildren, arrivalDateTime, roomType, bedType, smokingOrNot, addRemarks, reservationStatus);
        }
        public void UpdateRoomReservation(string reservationID, int numOfAdults, int numOfChildren, DateTime arrivalDateTime, string roomType, string bedType, string smokingOrNot, string addRemarks, string reservationStatus)
        {
            _roomReservationQuery.UpdateRoomReservation(reservationID, numOfAdults, numOfChildren, arrivalDateTime, roomType, bedType, smokingOrNot, addRemarks, reservationStatus);
        }
        public void DeleteRoomReservation(string reservationID)
        {
            _roomReservationQuery.DeleteRoomReservation(reservationID);
        }
    }
}
